package com.huakang.controller;

import com.huakang.entity.Patient;
import com.huakang.service.PatientService;
import com.huakang.utils.InpatientVo;
import com.huakang.utils.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;
import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("/patient")
public class PatientController {
    @Autowired
    private PatientService patientService;
    @GetMapping("/getOne")
    public ResultVo getOne(HttpSession session){
        InpatientVo inpatientVo= (InpatientVo) session.getAttribute("inpatientVo");
        List<InpatientVo> list=new ArrayList<>();
        list.add(inpatientVo);
        return  ResultVo.success("成功",list);
    }
}
